<?php
/**
 * Data model
 *
 * @category  DataModel
 * @package   DataModel
 * @author    DataModel Generator v1.3
 * @version   Revision: $Rev$
 */
/**
 * Data model for table "coverage_file"
 *
 * @category  DataModel
 * @package   DataModel
 * @author    DataModel Generator v1.3
 * @version   Revision: $Rev$
 *
 * @property-read mixed Id
 * @property-read mixed File
 * @property-read mixed Loc
 * @property-read mixed Ncloc
 * @property-read mixed Classes
 * @property-read mixed Methods
 * @property-read mixed Coveredmethods
 * @property-read mixed Statements
 * @property-read mixed Coveredstatements
 * @property-read mixed Elements
 * @property-read mixed Coveredelements
 */
abstract class BaseCoverageFile extends BaseRecord
{
    const TABLE_NAME = "coverage_file";

    public function __construct()
    {
        parent::__construct(self::TABLE_NAME);
    }

    protected function initFields()
    {
        $this->hasColumn('id', 'PUA:tinyint(3)');
        $this->hasColumn('file', 'N:varchar(255)');
        $this->hasColumn('loc', 'UN:tinyint(3)');
        $this->hasColumn('ncloc', 'UN:tinyint(3)');
        $this->hasColumn('classes', 'UN:tinyint(3)');
        $this->hasColumn('methods', 'UN:tinyint(3)');
        $this->hasColumn('coveredmethods', 'UN:tinyint(3)');
        $this->hasColumn('statements', 'UN:tinyint(3)');
        $this->hasColumn('coveredstatements', 'UN:tinyint(3)');
        $this->hasColumn('elements', 'UN:tinyint(3)');
        $this->hasColumn('coveredelements', 'UN:tinyint(3)');
    }

    public function initRelations()
    {
    }

    public function getById($id)
    {
        return parent::getById($id, 'CoverageFile');
    }

    public function getByParams( $params, $type = ORMRecord::ONE_RECORD, $limit = null )
    {
        return parent::getByParams( $params, $type, $limit, 'CoverageFile');
    }

    public function getAll( $limit = null )
    {
        return parent::getAll( $limit, 'CoverageFile' );
    }
}